<template>

  <div>
    <el-button @click="onClickBtn">点击</el-button>
    <el-date-picker
      date-value="dateValue"
      type="date"
      placeholder="选择日期"
      @change="$emit('change', $event.target.checked)"
    />
    <input
      type="checkbox"
      :checked="checked"
      @change="$emit('change', $event.target.checked)"
    >
  </div>
</template>

<script>

export default {
  name: 'BaseDateRange',
  model: {
    prop: 'checked',
    event: 'change'
  },
  props: {
    checked: Boolean
  },

  data() {
    return {

    }
  },
  watch: {

  },
  created() {

  },
  mounted() {

  },
  methods: {
    onClickBtn() {
      console.log('onClickBtn', this.vModel)
    }

  }
}
</script>

<style lang="scss" scoped>

</style>
